{extend name="base"/}
{block name="main"}
<style>.btn {margin-bottom:0;}</style>
<div class="Hui-article">
    <article class="cl pd-20">
        <div id="tab_demo" class="HuiTab" style="margin-bottom: 15px; position:relative;">
            <div class="tabBar clearfix">
                <span onclick="window.location.href='__CONF_SITE__admin/count/order_count'">订单统计</span>
                <span class="current">成交量统计</span>
            </div>
        </div>
        <div>
            <style>.page_btn{float:left;}
            .tabBar span {background: #fff;color:#988989;font-size:14px;font-weight: normal;}</style>
            <div class="cl pd-5 bg-1 bk-gray mt-20">
                <form class="Huiform" method="post" action="__CONF_SITE__admin/count/goods_count" style=" padding: 15px;">
                    <div class="text-c">
                        日期范围：
                        <input autocomplete="off" type="text" onfocus="WdatePicker()" value="{$star_time}" name="star_time" class="input-text Wdate" style="width:120px;">
                        -
                        <input autocomplete="off" type="text" onfocus="WdatePicker()" value="{$end_time}" name="end_time" class="input-text Wdate" style="width:120px;">
                        <input autocomplete="off" type="text" name="search_text" value="{$search_text}" placeholder=" 商品名称" style="width:250px" class="input-text">
                        <select class="input-text" name="goods_cate" style="width: auto">
                            <option value="0">全部</option>
                            {volist name="goods_cate" id="c"}
                            <option {if condition="$cate_id==$c.cate_id"} selected {/if} value="{$c.cate_id}">{$c.cate_name}</option>
                            {/volist}
                        </select>
                        <button class="btn btn-search radius" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
                    </div>
                </form>
            </div>
                <table class="table table-border table-bordered table-bg table-hover table-sort" style="margin-top: 0;">
                    <thead>
                    <tr class="text-c">
                        <th>缩略图</th>
                        <th>产品名称</th>
                        <th>单价</th>
                        <th>成交量</th>
                        <!--<th>商品添加时间</th>-->
                    </tr>
                    </thead>
                    <tbody id="tbody">
                    {volist name="result" id="r" key="k"}
                    <tr class="text-c va-m">
                         <td><img width="60" height="60" class="radius" src="{$r['img_cover']}"></a></td>
                        <td>{$r['goods_name']}</td>
                        <td><span class="price">{$r['price']}</span></td>
                        <td class="td-manage">
                            {$r['num']}</td>
                        <!--<td>{$r['create_time']}</td>-->

                    </tr>
                    {/volist}
                    </tbody>
                </table>
                <div class="n_page_no">
                    {$page}
                </div>
            </div>
        </div>
        {/block}
        {block name="script"}

        {/block}